<?php
$redis = new Swoole\Redis();
$redis->connect('192.168.99.160', 6666, function ($client, $result){
    if ($result == false) {
        echo "Failed Connected Resis" . PHP_EOL;
    }
    $client->set('tt','1',function ($client, $result){
        // 红东尼？回调灾难！！！
        var_dump($result);
        $client->close();
    });
});